import { getCsrfToken } from "next-auth/react";

export default async function getToken(req, res) {
  const token = await getCsrfToken({ req });
  console.log(token);

  res.status(200).json(token);
}
